﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

///<summary>
///
///</summary>
public class Test01 : MonoBehaviour
{

    int num = 0;
    int sum = 5;
    bool isbreak = false;
    private void Start()
    {
        Debug.Log("初始" + num);
    }

    private void Update()
    {
        if (isbreak)
        {
            Debug.Log("结束");
            return;
        }
        if (Input.GetKeyDown(KeyCode.Q))
        {
            num++;
            Debug.Log("当前" + num);
            Debug.Log("当前图标爆了还剩" + (sum - num-1) + "次" + "换图标");
            if (num == sum-1)
            {
                isbreak = true;
                Debug.Log("游戏结束");

            }
        }
    }


}
